<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <button id="btn">文本框</button>
    <button id="box">复制</button>
    <button>单选</button>
    <button>下拉框</button>
    <button>文本域</button>
    <div id="ipt"></div>
    <button id="ti">提交</button>
</body>
<script>
    var textNum = 1
    window.onload = function () {
        document.getElementById('set1').addEventListener('change',function () {
            console.log(this.value)
        })
    }
</script>
</html>